Added support to automatically bind events when using Builder.#98
Added support to automatically bind events when using Builder.#98joangs wants to merge 2 commits into
Conversation
Changes to be committed: new file: glib/glib_extra.go modified: gtk/gtk.go new file: gtk/gtkbuilder_bridge.go new file: gtk/gtkbuilder_cgo.go
|
Pardon my ignorance, but is Builder the next generation of glade? The current samples of gotk3 dynamically create the gui. Your work I noticed a funding campaign going on for Builder, but they never Why isn't gotk3 actually not trying to do a funding campaign? Again, I Cheers :) On 12/30/2014 04:24 PM, Joan Garcia i Silano wrote:
|
|
The gtk Builder creates a GUI from a description (file, string, etc..), but you must bind the events associated to the GUI objects. You can use glade to edit the GUI and save it in GtkBuilder format. |
modified: glib/glib_extra.go - Error
type Test struct {
patata int
}
func (*Test) On_button1_clicked(button *gtk.Button) {
// clicked
}
.....
Changes to be committed:
new file: glib/glib_extra.go
modified: gtk/gtk.go
new file: gtk/gtkbuilder_bridge.go
new file: gtk/gtkbuilder_cgo.go